package com.contacts.service;

import java.sql.SQLException;

import com.contacts.dao.UserDao;
import com.contacts.pojo.User;


public class UserService {
	//用户注册
	public void addUser(User user) throws SQLException {
		UserDao ud=new UserDao();
		ud.addUser(user);
	}
	//登录操作
	public User findUserByLogin(User u) throws SQLException {
		UserDao ud=new UserDao();
		return ud.findUserByLogin(u);
	}
		
		
}
